package cn.rengy.web.excelcompare.controller;

import cn.rengy.lang.ResultEntity;
import cn.rengy.web.excelcompare.service.ExcelCompareTaskService;
import org.apache.commons.collections.MapUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;
@RestController
public class ExcelCompareTaskController {
    @Autowired
    private ExcelCompareTaskService excelCompareTaskService;
    @RequestMapping("/excelCompareTask/delete")
    public ResultEntity delete(@RequestBody Map<String,Object> param){
        Long id= MapUtils.getLong(param,"id");
        return excelCompareTaskService.deleteById(id);
    }
}
